<?php
/**
 * The article template file.

 * @package WordPress
 * @subpackage TNT
 */

get_header(); ?>
<div class="main">
	<div class="primary article-page">
	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

			<article id="post-<?php the_ID(); ?>" >
				<header>
					<h1><?php the_title(); ?></h1>
					<small class="article_info">
	                    <span>发布时间：</span>
                        <time pubdate="pubdate" datetime="<?php the_time('Y年-月-日TG:H'); ?>" class="date"><?php the_time('Y年m月d日G:H'); ?>&nbsp;</time>
	                    <span>作者：</span><a rel="author" title="Posts by <?php the_author(); ?>"><?php the_author(); ?></a>
	                    <span>分类</span>：<?php the_category(', ') ?> 
	                    <span>阅读：</span><?php dtheme_views(); ?>次
						<?php comments_popup_link('抢沙发', '1条评论&nbsp;', '%条评论&nbsp;'); ?>
	                    <?php edit_post_link('编辑', ' [ ', ' ] '); ?>
                     </small>
				</header>
				<div class="entry">
					<?php the_content(); ?>
				</div>
				
				<div>
					<menu>
                    	<?php previous_post_link('【上一篇】%link') ?><?php next_post_link('【下一篇】%link') ?>
				</menu>
                	<?php the_tags('<aside class="keywords">关键字: ', ' ', '</aside>'); ?>
                	<?php article_share();  ?>
                    <aside class="post-related"><?php post_related();?></aside>
					
				</div>
			

			<?php comments_template(); ?>
         </article>   
		
	
		<?php endwhile; else: ?>
		
			<article>
				<p>确定链接是对的？</p>
			</article>
		<?php endif; ?>
		
	</div>

		
	<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>